package com.thread.sync.sync07;

//worker子类,实现具体业务逻辑
public class Worker01 extends Worker {
    public static Object handle(MyTask task) {
        Object output = null;
        try {
            //处理任务的耗时。。 比如说进行操作数据库。。。
            Thread.sleep(500);
            output = task.getPrice();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return output;
    }
}
